import os
from os.path import join


source_dir = "./data/20230606_test_4views_imgs"
target_dir = "./data/compress_depth_test"

os.makedirs(target_dir, exist_ok=True)

fns = []
for fn in os.listdir(source_dir):
    if not "vis_-d455_camera1-aligned_depth_to_color-image_raw_" in fn:
        continue
    fns.append(fn)

fns.sort()
print(len(fns))

for i, fn in enumerate(fns):
    os.system("cp {} {}".format(join(source_dir, fn), join(target_dir, str(i) + ".png")))
